﻿using System.Collections.Generic;
using Myotragus.Data;
using Myotragus.Store.Model.Domain;
using NHibernate.Criterion;

namespace Myotragus.Store.Model.DefaultRepositories
{
  public interface ICategoryRepository : IDefaultsLocalizableReadRepository<ICategory>,
                                            IDefaultsLocalizableWriteRepository<int, ICategory>
  {
    IEnumerable<IProduct> GetProductsIn(int categoryId, int lcId, params Order[] orderBy);

    IEnumerable<IProduct> GetProductsIn(int categoryId, int lcId, int firstResult, int maxResults, 
                                                        params Order[] orderBy);
  }
}